package com.alleniverrui.mailsend.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Random;

@Data
@Component
public class CheckNumber {
    /**
     *     验证码数字
     */
    private String number;
    /**
     *     验证码长度
     */
    private Integer length=6;

    public CheckNumber() {

        this.number= String.valueOf((int)((Math.random()*9+1)*100000));
    }
}
